package com.passer.simpletransfer.service.impl;

import com.passer.simpletransfer.model.ChatUser;
import com.passer.simpletransfer.model.UserMessage;
import com.passer.simpletransfer.service.ChatService;
import com.passer.simpletransfer.websocket.ChatWebSocketService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("chatService")
public class ChatServiceImpl implements ChatService {
    @Override
    public List<ChatUser> getUserList(String userId) {
        return ChatWebSocketService.getChatUsers(userId, true);
    }

    @Override
    public Map<String, ChatUser> getUserMap(String userId) {
        return ChatWebSocketService.getChatUserMap(userId, true);
    }

}
